/**
 * 音频路径
 */
export class AudioPaths {
    /**
     * 音乐根目录
     */
    private static MUSIC_DIR = "audio/music/";
    /**
     * 音效跟目录
     */
    private static SOUND_DIR = "audio/sound/";

    /**
     * 获取音乐路径
     *
     * @param name 音乐名称
     */
    private static getMusic(name: string): string {
        return this.MUSIC_DIR + name;
    }

    /**
     * 获取音效路径
     *
     * @param name 音效名称
     */
    private static getSound(name: string): string {
        return this.SOUND_DIR + name;
    }

    /**
     * 音效：点击
     */
    public static get clickSound(): string {
        return this.getSound('click');
    }

    /**
     * 音效：龙死亡
     */
    public static get dragonDieSound(): string {
        return this.getSound('dragon_die');
    }

    /**
     * 音效：火
     */
    public static get fireSound(): string {
        return this.getSound('fire');
    }

    /**
     * 音效：攻击小怪
     */
    public static get hitMonsterSound(): string {
        return this.getSound('hit_monster');
    }

    /**
     * 音效：攻击玩家
     */
    public static get hitPlayerSound(): string {
        return this.getSound('hit_player');
    }

    /**
     * 音效：复活
     */
    public static get reviveSound(): string {
        return this.getSound('revive');
    }
}